package com.powernode.factory;

/**
 * 这是客户端程序
 */
public class Test {
    public static void main(String[] args) {
        Weapon tank = WeaponFactory.get("TANK");
        Weapon dagger = WeaponFactory.get("DAGGER");
        Weapon fighter = WeaponFactory.get("FIGHTER");
        tank.attack();
        dagger.attack();
        fighter.attack();
    }
}